# c test  Makefile 
# 2005-11-6 
# neil duan 

include ../Rules.make

PROJS  = $(WORKDIR)/client_test

OBJS   :=  test_raw.o

CFLAGS += -I$(TOPDIR)/include

LFLAGS += -lpthread 

ifeq ($(DEBUG),y)
LFLAGS += -L$(LIBDIR) -lnd_cliapp_dbg  -lnd_net_dbg -lnd_crypt_dbg -lnd_common_dbg  
else
LFLAGS += -L$(LIBDIR)  -lnd_cliapp -lnd_net -lnd_crypt -lnd_common
endif


all: $(PROJS) 

all: $(PROJS)

$(PROJS): $(OBJS)
	$(CC) -o  $(PROJS)   $(OBJS)  $(LFLAGS)

.c.o:
	$(CC) $(INCLUDE) $(CFLAGS) -o $*.o $<
.cpp.o:
	$(GPP) $(INCLUDE) $(CFLAGS) -o $*.o $<

clean:
	rm -f *.o  $(PROJS) 

depend:
	$(CC) -E -M $(INCLUDE)  *.c >.depend

ifeq (.depend, $(wildcat .depend))
include .depend
endif
